package com.zlsoft.sbsm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlsoft.sbsm.common.mybatis.Page;
import com.zlsoft.sbsm.model.LogDO;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @ Author     ：Mr.LinYang Tang
 * @ Date       ：Created in 19:49 2020/11/28
 * @ Company：ZLSOFT
 */
@Repository
public interface LogMapper extends BaseMapper<LogDO> {

    IPage<LogDO> findLogsByUsernameAndRange(Page<LogDO> pager, String name, Date start, Date end);

    IPage<LogDO> searchLogsByUsernameAndKeywordAndRange(Page<LogDO> pager, String name, String keyword, Date start, Date end);

    IPage<String> getUserNames(Page<LogDO> pager);
}
